package com.nf.ch03.test06.two;

/**
 * 防盗门
 *
 * @author lwj
 * @date 2025-03-04
 * @vesion 1.0.0
 */
public class SecurityDoor extends Door implements Alarmable {
    // 构造方法
    public SecurityDoor() {}
    public SecurityDoor(String name) {
        super(name);
    }

    /**
     * 防盗(响铃)
     */
    @Override
    public void ring() {
        System.out.println(this.getName()+"触发报警提示，已发送给用户！");
    }
}
